package controllers.deckControlers;

import java.util.Collections;

import classes.cards.ICard;
import classes.deck.Deck;

public abstract class DeckController {

	private void shuffle(Deck deck) {
		Collections.shuffle(deck.getDeck());
	}
	
	public ICard drawCard(Deck deck) {
		ICard card = deck.getDeck().getLast();
		deck.getDeck().removeLast();
		return card;
	}
	
	public void addToDiscardPile(Deck deck, ICard card) {
		deck.getDiscardPile().add(card);
	}
	
}
